<?php
$folder_type_arr = CommonUtils::getFolderTypeList();
$watermark_arr   = PDES_GD::$watermark;
                    
$folder_type_arr['image'] = array(''=>'Please Select...') + $folder_type_arr['image'];
$folder_type_arr['video'] = array(''=>'Please Select...') + $folder_type_arr['video'];
//$watermark_arr = array(''=>'Please Select...') + $watermark_arr;
?>
<div id="pop-folders" class="popup">

    <div class="video">
        <form method="get" action="#">            
            <input type="hidden" name="type" value="" />
            <input type="hidden" name="id" value="" />
            <input type="hidden" name="folder_item_type" value="video" />
            <fieldset class="ui-widget-content">

                <legend class="ui-widget-header">Video</legend>
                
                <ul class="folder-list">
                    <li class="hd ui-widget-header ui-helper-clearfix">
                        <span class="grid grid-0">
                            Folder Name
                        </span>
                        <span class="grid grid-3">
                            Action Buttons
                        </span>
                    </li>
                </ul>
                
                <div class="add-folder-box">
                    <a class="btn ui-state-default ui-corner-all add-folder" href="#"><span class="ui-icon ui-icon-plus"></span>Add Folder</a>    
                </div>
                
            </fieldset>
            <span class="buttons">
    		    <?php FormHelper::SubmitButton('submit', 'Update') ?>
    		    <?php FormHelper::ResetButton('', 'Close') ?>
            </span>
        </form>
    </div>
    
    <div class="image">
        <form method="get" action="#">
            <input type="hidden" name="type" value="" />
            <input type="hidden" name="id" value="" />
            <input type="hidden" name="folder_item_type" value="image" />
            <fieldset class="ui-widget-content">

                <legend class="ui-widget-header">Image</legend>
                
                <ul class="folder-list">
                    <li class="hd ui-widget-header ui-helper-clearfix">
                        <span class="grid grid-1">
                            Folder Name
                        </span>
                        <span class="grid grid-2">
                            Watermark
                        </span>
                        <span class="grid grid-3">
                            Action Buttons
                        </span>
                    </li>
                </ul>  
                
                <div class="add-folder-box">
                    <a class="btn ui-state-default ui-corner-all add-folder" href="#"><span class="ui-icon ui-icon-plus"></span>Add Folder</a>    
                </div>
                
            </fieldset>
            <span class="buttons">
    		    <?php FormHelper::SubmitButton('submit', 'Update') ?>
    		    <?php FormHelper::ResetButton('', 'Close') ?>
            </span>
        </form>
    </div>
    
</div>

<div id="pop-folder" class="popup">

    <div class="video">
        <form method="get" action="#">
            <input type="hidden" name="type" value="" />
            <input type="hidden" name="id" value="" />
            <input type="hidden" name="folder_item_type" value="video" />
            <input type="hidden" name="folder_id" value="" />
            <fieldset class="ui-widget-content">
                <legend class="ui-widget-header">Video</legend>
                <?php FormHelper::TextField('title_en', '', 'English Name' ) ?>
                <?php FormHelper::TextField('title_cn', '', 'Chinese Name' ) ?>
                <?php FormHelper::DropDownList('folder_type', $folder_type_arr['video'], '', 'Folder Type'); ?>
            </fieldset>
            <span class="buttons">
    		    <?php FormHelper::SubmitButton('submit', 'Submit') ?>
    		    <?php FormHelper::ResetButton('', 'Reset') ?>
            </span>
        </form>
    </div>
    
    <div class="image">
        <form method="get" action="#">
            <input type="hidden" name="type" value="" />
            <input type="hidden" name="id" value="" />
            <input type="hidden" name="folder_item_type" value="image" />
            <input type="hidden" name="folder_id" value="" />
            <fieldset class="ui-widget-content">
                <legend class="ui-widget-header">Image</legend>
                <?php FormHelper::TextField('title_en', '', 'English Name' ) ?>
                <?php FormHelper::TextField('title_cn', '', 'Chinese Name' ) ?>
                <?php FormHelper::DropDownList('folder_type', $folder_type_arr['image'], '', 'Folder Type'); ?>
                <?php FormHelper::DropDownList('watermark', $watermark_arr, '', 'Watermark'); ?>
            </fieldset>
            <span class="buttons">
    		    <?php FormHelper::SubmitButton('submit', 'Submit') ?>
    		    <?php FormHelper::ResetButton('', 'Reset') ?>
            </span>
        </form>
    </div>
    
</div>
